package com.acme;


import android.app.Activity;
import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;

public class CollegeAwards extends ListActivity {

	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.text_list);  
        
        String[] levels = getResources().getStringArray(R.array.college_awards);
        setListAdapter(new ArrayAdapter<String>(this, R.layout.text_list_item, levels));
    }
		
	public void onListItemClick(ListView parent, View view, int position, long id) {
		Toast.makeText(getApplicationContext(), ((TextView) view).getText(),
     	          Toast.LENGTH_SHORT).show();
	}
}
